<script setup>
import TitleValue from '@components/TitleValue'
defineProps({
    data: Array
})

const getTypeStr = (value) => {
    let str = ''
    switch (value) {
        case 'cpws':
            str = '裁判⽂书'
            break
        case 'ktgg':
            str = '开庭公告'
            break
        case 'ajlc':
            str = '案件流程信息'
            break
        case 'fygg':
            str = '法院公告'
            break
        case 'shixin':
            str = '失信公告'
            break
        case 'zxgg':
            str = '执⾏公告'
            break
        case 'bgt':
            str = '曝光台'
            break
        default:
            str = '其他'
    }
    return str
}
</script>
        
<template>
    <el-row :gutter="16" v-for="(item, index) in data" :key="index">
        <el-col :span="7">
            <title-value title="审结⽇期:" :value="item.sort_time_string" />
        </el-col>
        <el-col :span="7">
            <title-value title="摘要说明:" :value="item.summary" />
        </el-col>
        <el-col :span="5">
            <title-value title="类型:" :value="getTypeStr(item.summary)" />
        </el-col>
        <el-col :span="5">
            <title-value title="匹配度:" :value="item.compatibility" />
        </el-col>
    </el-row>
</template>